
<script type="text/javascript">

	alert("一_二三四五".substring(0,3));

</script>

regex: <input type="text" id="a" name="a" ><BR>
string:<input type="text" id="b" name="b" style="" ><BR>
result:<input type="text" id="c" name="c" style=""><BR>